package cn.edu.tju.core.security.rest.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PasswordDTO {
    @NotNull
    @Size(min = 4, max = 100)
    private String newPassword;
    @NotNull
    @Size(min = 4, max = 100)
    private String oldPassword;
}
